<?php

use Illuminate\Routing\Router;

Admin::routes();

Route::group([
    'prefix'        => config('admin.route.prefix'),
    'namespace'     => config('admin.route.namespace'),
    'middleware'    => config('admin.route.middleware'),
], function (Router $router) {

    $router->get('/', 'HomeController@index')->name('admin.home');

    $router->resource('area-infos', AreaController::class);
    $router->resource('device-types', DeviceTypeController::class);
    $router->resource('device-infos', DeviceInfoController::class);

    $router->resource('item-infos', ItemController::class);
    $router->resource('host-infos', HostController::class);

    $router->resource('one-key', OneKeyController::class);


});
